
module.exports = app => {

    return class HomeController extends app.Controller {

        async list() {
            let teacher = await this.service.teacher.list();
            await this.ctx.render('member/teacher/index.js', {
                teacher
            });
        }

        async evaluate() {
            let id = this.ctx.request.query.id;
            let teacher = await this.service.teacher.get({
                id
            });
            await this.ctx.render('member/teacher/evaluate/index.js', {
                teacher
            });
        }


        async evaluateList() {
            // let id = this.ctx.request.query.id;
            let evaluateList = await this.service.teacher.evaluateList();
            await this.ctx.render('member/teacher/evaluate/list/index.js', {
                evaluateList
            });
            this.app.logger.info("555555555555555555555");
            this.app.logger.info(evaluateList);
        }


    };
};
